package com.ohs.controller.before;


import com.ohs.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpSession;

@Controller
public class IndexController {
    @Autowired
    private IndexService indexService;
    //跳转到主页
    @GetMapping("/")
    public String index(Model model, HttpSession session){
        String s = indexService.indexData(session, model);
        return s;
    }


}
